package cn.changeforyou.cmd.generator.db.mybatisplus.parameters;

import cn.changeforyou.cmd.generator.CmdGeneratorParameter;
import com.beust.jcommander.Parameter;
import javax.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * @author zhyu
 * @date 2021/2/19 11:52
 */
@Data
public class ServiceGeneratorParameters implements CmdGeneratorParameter {

    @Parameter(names = {"-p", "-projectPath"}, description = "项目地址")
    @NotEmpty
    private String projectPath;
    @NotEmpty
    @Parameter(names = {"-e", "entityName"}, description = "实体类名")
    private String entityName;
    @NotEmpty
    @Parameter(names = {"-s", "servicePath"}, description = "service地址")
    private String servicePath;

    @Parameter(names = {"-h", "-help"}, description = "帮助文档")
    private boolean help;
    
    @Override
    public boolean isHelp() {
        return help;
    }

    @Override
    public void isHelp(boolean isHelp) {
        this.help = isHelp;
    }

    @Override
    public String getSign() {
        return "";
    }
}
